TierPricingTable\Addons\GlobalTieredPricing\GlobalPricingRule B

Total Complexity 92
Dependencies 4
Dependents 11
Total lines 645
Lines of code 283
Logical lines of code 128
Comment lines 235
Methods 44
Properties 15

Methods 44

Method Rating Maintainability Complexity Lines of code
_matchRequirements()
A
47 14 35
fromArray()
A
49 13 28
validatePricing()
S
62 6 10
save()
S
53 3 21
build()
S
47 2 34
readPricingRules()
S
66 3 7
setDiscount()
S
70 3 6
asArray()
S
55 1 19
setPricingType()
S
78 2 3
setMinimum()
S
79 2 3
setSalePrice()
S
79 2 3
setRegularPrice()
S
79 2 3
getTieredPricingRules()
S
71 2 6
isValidPricing()
S
68 2 8
getPricingType()
S
78 2 3
setApplyingType()
S
78 2 3
getApplyingType()
S
78 2 3
getTieredPricingType()
S
71 2 6
setTieredPricingType()
S
71 2 6
matchRequirements()
S
74 1 4
isSuspended()
S
82 1 3
reactivate()
S
81 1 3
suspend()
S
81 1 3
setIsSuspended()
S
80 1 3
setId()
S
81 1 3
getDiscount()
S
82 1 3
setIncludedUsers()
S
81 1 3
getIncludedUsers()
S
82 1 3
setIncludedUsersRole()
S
81 1 3
setIncludedProducts()
S
81 1 3
getIncludedUserRoles()
S
82 1 3
getIncludedProducts()
S
82 1 3
setIncludedProductCategories()
S
81 1 3
getIncludedProductCategories()
S
82 1 3
getRuleId()
S
82 1 3
getPercentageTieredPricingRules()
S
82 1 3
getMinimum()
S
82 1 3
getId()
S
82 1 3
setPercentageTieredPricingRules()
S
81 1 3
getFixedTieredPricingRules()
S
82 1 3
setFixedTieredPricingRules()
S
81 1 3
getSalePrice()
S
82 1 3
getRegularPrice()
S
82 1 3
isPurchasable()
S
82 1 3